/**
 * 
 */
package com.uuid;

import java.util.UUID;

/**
 * @author lionbule
 *
 */
public class TestUuid {

	public static void main(String[] args) {
		UUID t1 = UUID.randomUUID();
		System.out.println(t1.toString());
		
		UUID t3 = UUID.fromString("8134422a-b1bb-4404-996d-612bf6f505fc");
		System.out.println(t3.toString()+", "+t3.variant());
		
		UUID t4 = new UUID(Long.valueOf((int)(Math.random()*10000)), System.currentTimeMillis());
		System.out.println(t4.toString()+", version="+t4.version() +", variant="+t4.variant());
	}

}
